home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / mg_comm.com / COMM.DOC < prev    next >
Encoding:
Text File  |  1990-03-13  |  1.9 KB  |  60 lines

  1.     The following files are part of COMM.ARC:
  2.  
  3.     COMM.C - Used to create a .OBJ which contains all the communications
  4.             functions.
  5.  
  6.    COMM.H - File with documentation for functions, and prototypes.
  7.  
  8.    TERM.C - Sample terminal program using the communications functions.
  9.  
  10.  
  11.     The COMM.C file creates functions for an interrupt-driven communications
  12.    handler.  The default buffer size is 4K but can be increased to a larger
  13.     value by performing the following in your code:
  14.  
  15. extern int BufSize;
  16.  
  17. main()
  18. {
  19.    BufSize=NewBufferSize;
  20.  
  21.    Please note that the above assignment must be done before the functions
  22.    are called to setup the interrupts.
  23.  
  24.     To compile the COMM.C file, using one of the following lines:
  25.  
  26. MicroSoft:
  27.    CL (or QCL) /c COMM.C
  28.  
  29. Turbo:
  30.    TCC -c COMM.C
  31.  
  32.    This will create a COMM.OBJ file which contains the functions.  To test
  33.    them, compile the TERM.C program as follows:
  34.  
  35. MicroSoft:
  36.     CL (or QCL) TERM.C COMM.OBJ
  37.  
  38. TurboC:
  39.    TCC TERM.C COMM.OBJ
  40.  
  41.    When the above steps are performed, the TERM.EXE file should have been
  42.    created.  This program is hard coded to work with a modem at 1200 baud
  43.    connect to COM1:.  Read the .H file for information on changing the
  44.    baud or other settings  via the PortInit function.
  45.  
  46.     The TERM.EXE program is very simple and will allow you to communicate
  47.    with your modem as a dumb terminal.  Modem commands like "ATH" to hangup
  48.    and "ATDTxxxxxx" to dial are required.  Make sure your modem is on and
  49.    connected to your computer.  If all goes well, characters you type on
  50.    the keyboard are sent to the modem, the modem then sends them back via
  51.    the COM port, where TERM.EXE will get them back and display them for you.
  52.  
  53. Mario Giannini
  54. Compuserve ID 76276,1576
  55.  
  56.  
  57. Distributed by Public (software) Library.
  58. For a catalog of more than 2000 disks of pd/shareware, call 1-800-2424-PSL
  59. or write Public (software) Library, P.O.Box 35705, Houston, TX 77235-5705.
  60.